package com.example.yls.demob;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.util.Log;

/**
 * Created by yls on 2018/11/6.
 */

public class MyReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.e("MyReceiver", "onReceive" + intent.getAction());

        public NetEvevt evevt = BaseActivity.evevt;

        if (intent.getAction().equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
            int netWorkState = NetUtil.getNetWorkState(context);
        }
    }
    public interface NetEvevt {
        public void onNetChange(int netMobile);
    }
}
